package com.lsy.seckill.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lsy.seckill.pojo.Goods;
import com.lsy.seckill.service.GoodsService;
import com.lsy.seckill.mapper.GoodsMapper;
import com.lsy.seckill.vo.SeckillGoodsVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author 19040
* @description 针对表【t_goods】的数据库操作Service实现
* @createDate 2024-09-15 11:52:38
*/
@Service
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods>
    implements GoodsService{
    @Resource
    private GoodsMapper goodsMapper;

    @Override
    public List<SeckillGoodsVo> findSeckillGoodsVo() {
        return goodsMapper.findSeckillGoodsVo();
    }

    @Override
    public SeckillGoodsVo findSeckillGoodsVoByGoodsId(Long goodsId) {
      return goodsMapper.findSeckillGoodsVoByGoodsId(goodsId);
    }
}




